<?php
/**
 * Created by PhpStorm.
 * User: FredGui
 * Date: 2017/4/14
 * Time: 15:26
 */

namespace Gmm\App\Mvc\Home\Model;

use Phalcon\Mvc\Model;

class User extends Model{

    public function initialize(){
        $this->setSource('user');
    }

    public  function getUsers(){
        $phql = "select * from User";
        $query = new Model\Query($phql,$this->getDI());
        $manage = $query -> execute();
      //  $manage = self::getModelsManager()->executeQuery($phql);

        var_dump($manage);exit;
    }
}